Package com.bitmovin.player.api.event

Contains all Bitmovin events and API to enable subscribing to those events.

Types

Event
Link copied to clipboard
sealed class Event
Includes all possible events the Player or Source can emit.
EventEmitter
Link copied to clipboard
interface EventEmitter<T : Event> : JavaEventEmitter<T>
Manages subscriptions to specific Events and notifies those subscribers when such an event is being emitted.
EventListener
Link copied to clipboard
interface EventListener<E : Event?>
Used to represent event listeners when Kotlin lambdas can not be used to conveniently subscribe to events (e.g.
JavaEventEmitter
Link copied to clipboard
interface JavaEventEmitter<T : Event>
Provides EventEmitter functionality that is more convenient for Java usage.
PlayerEvent
Link copied to clipboard
sealed class PlayerEvent : Event
Includes all possible events that only the Player can emit.
SourceEvent
Link copied to clipboard
sealed class SourceEvent : Event
Includes all possible events that the Source or Player can emit.

Functions

next
Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.next(noinline action: (E) -> Unit)
@JvmName(name = nextPlayerEvent)
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = nextSourceEvent)
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.next(noinline action: (E) -> Unit)
on
Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.on(noinline action: (E) -> Unit)
@JvmName(name = onPlayerEvent)
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = onSourceEvent)
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.on(noinline action: (E) -> Unit)